import * as actionTypes from '../actionTypes'
// 同步
export const doLoginAction = () => ({
    type:actionTypes.USER_LOGIN_SUCCESS
})

export const doAsyncLoginAction = () => {
    // 不支持 异步action
    return (dispatch) => {
        setTimeout(() => {
            dispatch(doLoginAction())
        },1000)
    }
}